Rendering apparatus

ABSTRACT

A rendering apparatus includes a low-speed frame buffer, and a first temporary memory and a second temporary memory with high-speed and small capacities. A first/second temporary memory rendering unit blends an image data already stored in the first/second temporary memory and another image data to be blended into the first/second temporary memory, and stores a result of the processing in the first/second temporary memory. A frame buffer rendering unit blends the blended images stored in the first/second temporary memory and a background image stored in the frame buffer.

BACKGROUND OF THE INVENTION

1) Field of the Invention

The present invention relates to a rendering apparatus that performs alpha blending (transparent rendering).

2) Description of the Related Art

A rendering apparatus, such as a computer and a car navigation system, displays an image on a display by reading out its image data from a frame buffer. In general, inexpensive and low-speed memories like a synchronous DRAM (SDRAM) are used as the frame buffer which requires a large capacity. The rendering apparatus can include, as well as the frame buffer, an expensive and high-speed synchronous RAM (SRAM) as a temporary memory with a small capacity. The rendering apparatus with the temporary memory can render the image at high speed, since the image data of which is written in the SRAM and read out from the SRAM to the frame buffer.

Such a rendering apparatus can render the image more rapidly if it is provided with a plurality of temporary memories and a plurality of rendering units actuated in parallel. However, one rendering unit has to refer to a temporary memory of another rendering unit because an image previously rendered is required in the alpha blending. Thus, the rendering apparatus which is merely provided with the temporary memory and the rendering unit in plural does not always operate correctly.

Therefore, as shown in FIG. 15, one temporary memory 2 can be provided and accessed by a plurality of rendering units 3 and 4. However, when the rendering units 3 and 4 access the temporary memory 2 simultaneously, it is necessary to allow only one access and prohibit the other access since an SRAM used as the temporary memory 2 cannot process a plurality of accesses simultaneously. Thus, an arbitration unit 5 is required which arbitrates the accesses. As a result, only one rendering unit 3 accesses the temporary memory 2 while the other rendering unit 4 is waiting. Thus, there is a problem in that speedup of rendering in the apparatus as a whole cannot be realized.

Alternatively, as shown in FIG. 16, a plurality of temporary memories 6 and 7 can be provided and connected to a plurality of rendering units 3 and 4, respectively . However, it is necessary that image data in the temporary memory 6 and image data in the temporary memory 7 do not overlap on the frame buffer 1 at all. In this case, an overlap judging/distributing unit 8 is required to assure that figures to be rendered do not overlap at all. However, there is a problem in that speedup of rendering in the apparatus as a whole cannot be realized since the processing performed by the overlap judging/distributing unit 8 takes time.

On the other hand, there is a display control apparatus that performs transmission/non-transmission processing in display processing after performing the alpha blending in rendering processing. There is a method of setting a specific color as a transparent color and transmitting or not transmitting a color depending on whether the color is the specific color (see FIGS. 17A to 17C). There is also a method of adding transmittance information to color information and performing the transmission/non-transmission processing according to the transmittance.

FIG. 17A is a screen subjected to transmission/non-transmission processing without alpha blending in rendering processing. FIG. 17B is a background screen. FIG. 17C is a result of the transmission/non-transmission processing. In FIG. 17A, a lower half of a triangle 12 is buried in a trapezoid 11. Parts of backgrounds 13 and 14 shown in FIG. 17B are also shown in FIG. 17C. However, the trapezoid 11 and the triangle 12 on the backgrounds 13 and 14 are not transparent.

The alpha blending in rendering processing is performed to an image in the frame buffer. The frame buffer is cleared with an initial value, which is 0 in general (that is, black). The alpha blending is performed to this initial image in which nothing is yet drawn.

The triangle 12 shown in FIG. 18B is a result of the alpha blending in rendering processing performed to the triangle 12 shown in FIG. 18A (same as FIG. 17A). In FIG. 18A, since the triangle 12 is not transparent, parts of the trapezoid 11 and a background 15 overlapping the triangle 12 are not seen. On the other hand, in FIG. 18B, a color and a pattern of the background 15 are seen weakly in an upper half 16 of the triangle 12 and a color and a pattern of the trapezoid 11 are seen weakly in a lower half 17 of the triangle 12, since the triangle 12 is semi-transparent.

Furthermore, there is a display control apparatus that performs alpha blending, in stead of the transmission/non-transmission processing, in display processing after performing it in rendering processing (the alpha blending can be performed in display processing as well as in rendering processing). The alpha blending in display processing is a processing to blend a plurality of images created and stored in the frame buffer in rendering processing.

However, as explained above, the alpha blending in rendering processing is applied to the initial image of black. Thus, black color is transparent in the blended image. When this image is subjected to the alpha blending in display processing, a blackish color can be seen in the blended image which is displayed on a display. When the transmission/non-transmission processing is performed in display processing, in stead of the alpha blending, a non-transparent part has a blackish color on the display and is not blended with a background screen (see FIGS. 19A to 19D).

FIG. 19A is a screen subjected to transmission/non-transmission processing with alpha blending in rendering processing. FIG. 19B is a background screen. FIG. 19C is a result of the transmission/non-transmission processing. In FIG. 19A, the triangle 12 is transparent and the lower half of which is buried in the trapezoid 11. Thus, a color and a pattern of the background 15 are seen weakly in the upper half 16 of the triangle 12 and a color and a pattern of the trapezoid 11 are seen weakly in the lower half 17 of the triangle 12. The backgrounds 13 and 14 around the trapezoid 11 and the triangle 12 shown in FIG. 19C are the same as those shown in FIG. 19B. However, the color and the pattern of the background 15 shown in FIG. 19A are still seen weakly in the upper half 16 of the triangle 12.

Originally, as shown in FIG. 19D, a color and a pattern of the background 13 in an upper half of FIG. 19B have to be seen weakly since the triangle 12 is semi-transparent. However, as described above, conventional technology has a problem in that an unintended image can be displayed when the alpha blending is performed in rendering processing and the transmission/non-transmission processing is performed in display processing, or when the alpha blending is performed not only in rendering processing but also display processing.

SUMMARY OF THE INVENTION

It is an object of the present invention to at least solve the problems in the conventional technology.

A rendering apparatus according to an aspect of the present invention blends a plurality of source images into a destination image stored in a frame buffer and renders a blended image of the source images and the destination image on a display. The rendering apparatus includes a temporary memory of higher speed and smaller capacity than the frame buffer; a calculating unit that calculates a first data and a second data without using the destination image and stores the first data and the second data in the temporary memory; and a blending unit that blends the source images into the destination image using the first data and the second data stored in the temporary memory to obtain the blended image, and stores the blended image in the frame buffer.

A rendering apparatus according to another aspect of the present invention blends a plurality of source images into a destination image stored in a frame buffer and renders a blended image of the source images and the destination image on a display. The rendering apparatus includes a temporary memory of higher speed and smaller capacity than the frame buffer; and a processor that executes a computer program. The computer program causes the processor to execute calculating a first data and a second data without using the destination image; storing the first data and the second data in the temporary memory; blending the source images into the destination image using the first data and the second data stored in the temporary memory to obtain the blended image; and storing the blended image in the frame buffer.

A display control apparatus according to still another aspect of the present invention displays an image on a display, and includes a first frame buffer; a second frame buffer; a first synthesizing unit that creates a first synthesized image by blending an image into another image stored in the first frame buffer, and stores the first synthesized image in the first frame buffer; a second synthesizing unit that creates a second synthesized image of the first synthesized image and a background image, and stores the second synthesized image in the second frame buffer; and a display control unit that displays the second synthesized image.

A display control apparatus according to still another aspect of the present invention displays an image on a display, and includes a first frame buffer; a second frame buffer; a processor that executes a computer program. The computer program causes the processor to execute creating a first synthesized image by blending an image into another image stored in the first frame buffer; storing the first synthesized image in the first frame buffer; creating a second synthesized image of the first synthesized image and a background image; and storing the second synthesized image in the second frame buffer. The display control apparatus further includes a display control unit that displays the second synthesized image.

The other objects, features, and advantages of the present invention are specifically set forth in or will become apparent from the following detailed description of the invention when read in conjunction with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of a schematic structure of a rendering apparatus according to a first embodiment of the present invention;

FIG. 2 is a block diagram of a structure of a temporary memory rendering unit of the rendering apparatus;

FIG. 3 is a block diagram of a structure of a frame buffer rendering unit of the rendering apparatus;

FIG. 4 is a flowchart of a program for realizing the rendering apparatus according to the first embodiment;

FIG. 5 is a block diagram of a schematic structure of a rendering apparatus according to a second embodiment of the present invention;

FIG. 6 is a flowchart of a program for realizing the rendering apparatus;

FIG. 7 is a block diagram of a schematic structure of a display control apparatus according to a third embodiment of the present invention;

FIG. 8 is a block diagram of a structure of a rendering unit of the display control apparatus;

FIG. 9 is a block diagram of a structure of a display control unit of the display control apparatus;

FIG. 10 is a flowchart of a program for realizing a part of the display control apparatus according to the third embodiment;

FIG. 11 is a block diagram of a structure of a display control unit of a display control apparatus according to a fourth embodiment of the present invention;

FIG. 12 is a block diagram of a schematic structure of a display control apparatus according to a fifth embodiment of the present invention;

FIG. 13 is a flowchart of a program for realizing the display control apparatus;

FIG. 14 is a flowchart of a program for realizing a display control apparatus according to a sixth embodiment of the present invention;

FIG. 15 is a block diagram of a schematic structure of a conventional rendering apparatus;

FIG. 16 is a block diagram of a schematic structure of a conventional rendering apparatus;

FIGS. 17A to C are schematic diagrams for explaining a result of transmission/non-transmission processing without alpha blending in rendering processing;

FIGS. 18A and B are schematic diagrams for explaining a result of alpha blending in rendering processing; and

FIGS. 19A to D are schematic diagrams for explaining a result of transmission/non-transmission processing with alpha blending in rendering processing.

DETAILED DESCRIPTION

Exemplary embodiments of the present invention will be explained in detail with reference to the accompanying drawings.

In a first embodiment, calculation to a frame buffer and calculation to a temporary memory are performed separately. First, a method for the separation will be explained.

C_(F) is a color code (image data) already stored in the frame buffer, and C₁ is a color code (image data) to be blended into C_(F). A blend ratio of C₁ is α₁ (0.0 to 1.0). A blended color code C_(1F) of C_(F) and C₁ is represented by the following expression (1). C _(1F)=α₁ C ₁+(1−α₁)C _(F)   (1)

The color code C_(F) in the frame buffer is overwritten by C_(1F) according to alpha blending represented by expression (1). Next, a color code C₂ is blended into C_(1F) at a blend ratio α₂ (0.0 to 1.0). A blended color code C_(21F) of C_(1F) and C₂ is represented by the following expression (2). C _(21F)=α₂ C ₂+(1 −α₂)C _(1F)  (2)

The color code C_(1F) in the frame buffer is overwritten by C_(21F) according to alpha blending represented by expression (2). Therefore, when a color code to be blended into C_(21F) is C₃ and a blend ratio is α₃ (0.0 to 1.0), a blended color code C_(321F) of C_(21F) and C₃ is represented by the following expression (3). C _(321F)=α₃ C ₃+(1 −α₃)C _(21F)  (3)

Although not described here, results of subsequent alpha blending are calculated in the same manner. The expressions (1) to (3) can be modified as the following expressions (4) to (6), respectively. $\begin{matrix} \begin{matrix} {C_{1F} = {{\alpha_{1}C_{1}} + {\left( {1 - \alpha_{1}} \right)C_{F}}}} \\ {= {C_{1}^{\prime} + {\left( {1 - \alpha_{1}} \right)C_{F}}}} \end{matrix} & (4) \\ \begin{matrix} {C_{21F} = {{\alpha_{2}C_{2}} + {\left( {1 - \alpha_{2}} \right)C_{1F}}}} \\ {= {{\alpha_{2}C_{2}} + {\left( {1 - \alpha_{2}} \right)C_{1}^{\prime}} + {\left( {1 - \alpha_{2}} \right)\left( {1 - \alpha_{1}} \right)C_{F}}}} \\ {= {C_{21}^{\prime} + {\left( {1 - \alpha_{2}} \right)\left( {1 - \alpha_{1}} \right)C_{F}}}} \end{matrix} & (5) \\ \begin{matrix} {C_{321F} = {{\alpha_{3}C_{3}} + {\left( {1 - \alpha_{3}} \right)C_{21F}}}} \\ {= {{\alpha_{3}C_{3}} + {\left( {1 - \alpha_{3}} \right)C_{21}^{\prime}} + {\left( {1 - \alpha_{3}} \right)\left( {1 - \alpha_{2}} \right)\left( {1 - \alpha_{1}} \right)C_{F}}}} \\ {= {C_{321}^{\prime} + {\left( {1 - \alpha_{3}} \right)\left( {1 - \alpha_{2}} \right)\left( {1 - \alpha_{1}} \right)C_{F}}}} \end{matrix} & (6) \end{matrix}$

Thus, calculation of C₁′, C₂₁′, and C₃₂₁′, which can be calculated without referring to C_(F) in the frame buffer at all, are separated from calculation of (1−α₁)C_(F), (1−α₂)(1−α₁)C_(F), and (1−α₃)(1−α₂)(1−α₁)C_(F). Therefore, when there are a plurality of temporary memories, it is possible to perform the calculation C₁′, C₂₁′, and C₃₂₁′ independently and store the results in respective temporary memories.

Color codes and alpha elements, which are stored in the temporary memories at each stage, are C_(1′) and (1−α₁) at the first stage, C₂₁′ and (1−α₂)(1−α₁) at the second stage, and C_(321′) and (1−α₃) (1−α₂)(1−α₁) at the third stage. Subsequently, in the same manner, color codes and alpha elements stored in the temporary memories are overwritten.

When the color code and the alpha element stored in the temporary memory are C_(T) and α_(T), alpha blending to be performed between the temporary memory and the frame buffer is represented by the following expression (7). C _(TF) =C _(T)+α_(T) C _(F)  (7)

As described above, when there is a plurality of temporary memories, it is possible to calculate C_(T) for the respective temporary memories independently. However, when the calculation (7) is performed between the temporary memories and the frame buffer, the order of assigning color code in each temporary memory to C_(T) Of expression (7) is required to be adjusted to the order of rendering instructions.

That is, when rendering based on first to fifth rendering instructions is applied to a first temporary memory and rendering based on sixth to tenth rendering instructions is applied to a second temporary memory, it is possible to perform the calculation of C_(T) for the respective temporary memories in parallel. Concerning the final calculation of C_(TF) between the temporary memories and the frame buffer, the calculation for the first temporary memory is performed first and, then, the calculation for the second temporary memory is performed, whereby it is possible to keep consistency of the calculation.

Next, a specific constitution of the first embodiment will be explained. FIG. 1 is a block diagram of a schematic structure of a rendering apparatus according to the first embodiment. As shown in FIG. 1, a rendering apparatus 20 in the first embodiment includes: a frame buffer 21 including an SDRAM; a frame buffer rendering unit 22 that applies rendering to the frame buffer 21; a small capacity (e.g., 64×64 pixels) and high-speed first temporary memory 26 including an SRAM; a first temporary memory rendering unit 23 that applies rendering to the first temporary memory 26; a second temporary memory rendering unit 24 that applies rendering to the second temporary memory 27; and a distributing unit 25 that allocates an area, in which a figure to be drawn according to a rendering instruction is placed, to the first temporary memory 26 or the second temporary memory 27.

Next, structures of the first temporary memory rendering unit 23 and the second temporary memory rendering unit 24 will be explained. However, the second temporary memory rendering unit 24 has the same structure as the first temporary memory rendering unit 23. Thus, only the first temporary memory rendering unit 23 will be explained.

In the following explanation, a color code and a blend ratio already calculated and stored in the temporary memory 26 are C_(t) and α_(t), respectively. A color code and a blend ratio of an image to be blended into the temporary memory 26 are C and α, respectively.

FIG. 2 is a block diagram of the structure of the first temporary memory rendering unit 23. The first temporary memory rendering unit 23 includes a first subtracter 31, a first multiplier 32, a first adder 33, a second subtracter 34, and a second multiplier 35. The color codes and the alpha elements in each stage, that is, C₁′ and (1−α₁), C₂₁′ and (1−α₂)(1−α₁), and C₃₂₁′ and (1−α₃)(1−α₂)(1−α₁) are calculated by the first subtracter 31, the first multiplier 32, the first adder 33, the second subtracter 34, and the second multiplier 35.

The first subtracter 31 subtracts the color code C_(t) from the color code C. The first multiplier 32 multiplies an output of the first subtracter 31 by the blend ratio α.

The first adder 33 adds the color code C to an output of the first multiplier 32. An output C_(t)′ of the first adder 33 is stored in the temporary memory 26 as a new color code. In the next stage, C_(t)′ is used as the color code C_(t).

The second subtracter 34 subtracts the blend ratio α from 1. The second multiplier 35 multiplies an output of the second subtracter 34 by the blend ratio α_(t). An output α_(t)′ of the second multiplier 35 is stored in the temporary memory 26 as a new blend ratio. In the next stage, α_(t)′ is used as the blend ratio α_(t).

Next, a structure of the frame buffer rendering unit 22 will be explained. In the following explanation, a color code and a blend ratio stored in the temporary memory 26 are C_(t) and α_(t), respectively, and a color code of an image stored in the frame buffer 21 is C_(f).

FIG. 3 is a block diagram of the structure of the frame buffer rendering unit 22. The frame buffer rendering unit 22 includes a third multiplier 36 and a second adder 37. The calculation of expression (7) is performed by the third multiplier 36 and the second adder 37. Note that C_(t) equals C_(T), α_(T) equals α_(t), and C_(f) equals C_(F).

The third multiplier 36 multiplies the color code C_(f) by the blend ratio α_(t). The second adder 37 adds the color code C_(t) to an output of the third multiplier 36. An output C_(f)′ of the second adder 37 (C_(TF) in expression (7)) is stored in the frame buffer 21 as a new color code. In the next calculation between the temporary memory 27 and the frame buffer 21, C_(f)′ is used as the color code C_(f) of the image stored in the frame buffer 21.

Next, an operation of the rendering apparatus 20 in the first embodiment will be explained. First, the first temporary memory 26 and the second temporary memory 27 are cleared with C=0 and α=1.0 in advance, to set C_(t) to αC and α_(t) to (1−α).

First, the distributing unit 25 allocates an area A (for example, an area of 64×64 pixels), in which a figure is rendered according to a rendering instruction, to the first temporary memory 26. As long as the figure is within the area A, the distributing unit 25 continues to send the rendering instruction to the first temporary memory rendering unit 23, which applies rendering processing to the first temporary memory 26 according to the sent rendering instruction.

When the figure deviates from the area A while the rendering processing is applied to the first temporary memory 26, the distributing unit 25 allocates a new area B (for example, an area of 64×64 pixels), which includes the figure deviating from the area A, to the second temporary memory 27. A color code and an alpha element stored in the first temporary memory 26 at this point are C_(1T) and α_(1T), respectively.'

As long as the figure is within the area B, the distributing unit 25 continues to send the rendering instruction to the second temporary memory rendering unit 24, which applies rendering processing to the second temporary memory 27 according to the sent rendering instruction. On the other hand, the frame buffer rendering unit 22 performs blend processing between the first temporary memory 26 and the frame buffer 21 and writes a result of the blend processing in the frame buffer 21.

As described above, the color code and the alpha element stored in the first temporary memory 26 are C_(1T) and α_(1T), respectively. When a color code written in the frame buffer 21 is C_(F), the color code C_(1F), which is written in the frame buffer 21 anew according to blend processing between the first temporary memory 26 and the frame buffer 21, is represented by the following expression (8). C _(1F) =C _(1T)+α_(1T) C _(F)  (8)

When the figure deviates from the area B while the rendering processing is applied to the second temporary memory 27, the distributing unit 25 allocates a new area C (for example, an area of 64×64 pixels) including the figure deviating from the area B to the first temporary memory 26. A color code and an alpha element stored in the second temporary memory 27 at this point are C_(2T) and α_(2T), respectively.

As long as the figure is within the area C, the distributing unit 25 continues to send the rendering instruction to the first temporary memory rendering unit 23, which applies rendering processing to the first temporary memory 26 according to the sent rendering instruction. On the other hand, the frame buffer rendering unit 22 performs blend processing between the second temporary memory 27 and the frame buffer 21 and writes a result of the blend processing in the frame buffer 21.

As described above, the color code and the alpha element stored in the second temporary memory 27 are C_(2T) and α_(2T), respectively, and the color code in the frame buffer 21 is C_(1F). Therefore, a color code C_(2F) represented by the following expression (9) is written in the frame buffer 21 anew. C _(2F) =C _(2T)+α_(2T) C _(1F)  (9)

Thereafter, the rendering processing applied to the first temporary memory 26 and the rendering processing applied to the second temporary memory 27 are repeated alternately.

Note that it is also possible to use software to realize the operation of the rendering apparatus 20 in the first embodiment. In this case, a not-shown processing device executes a program of a flowchart shown in FIG. 4, whereby the functions of the frame buffer rendering unit 22, the first temporary memory rendering unit 23, the second temporary memory rendering unit 24, and the distributing unit 25 are realized.

The flowchart shown in FIG. 4 will be explained. First, when a program 1 is executed, the processing device clears the first temporary memory 26 and the second temporary memory 27 and, then, allocates the area A to the first temporary memory 26 (step S401). As long as a figure drawn according to a rendering instruction is within the area A (“Yes” at step S402), the processing device applies rendering processing to the first temporary memory 26 (step S403).

When the figure deviates from the area A while the rendering processing is applied to the first temporary memory 26 (“No” at step S402), the processing device informs a program 2 of the deviation of the figure from the area A (step S404). In the program 2, the processing device allocates the area B to the second temporary memory 27 (step S406). As long as the figure is within the area B (“Yes” at step S407), the processing device applies the rendering processing to the second temporary memory 27 (step S408).

In the program 1, the processing device performs blend processing between the first temporary memory 26 and the frame buffer 21 and writes a result of the blend processing in the frame buffer 21 (step S405). On the other hand, when the figure deviates from the area B while the rendering processing is applied to the second temporary memory 27 (“No” at step S407), the processing device informs the program 1 of the deviation of the figure from the area B (step S409).

The processing device performs blend processing between the second temporary memory 27 and the frame buffer 21 and writes a result of the blend processing in the frame buffer 21 (step S410). In the program 1, the processing device allocates the area C to the first temporary memory 26 (step S401). Thereafter, the processing device executes steps S402 to S405.

According to the first embodiment, the first temporary memory rendering unit 23 and the second temporary memory rendering unit 24 can perform blend processing independently, to realize high-speed rendering. Furthermore, the blend processing is performed according to the order of rendering instructions, to perform alpha blending correctly.

FIG. 5 is a block diagram of a schematic structure of a rendering apparatus according to a second embodiment. As shown in FIG. 5, a rendering apparatus 40 in the second embodiment includes the frame buffer 21, the frame buffer rendering unit 22, a first temporary memory 26, a second temporary memory 27, a temporary memory rendering unit 43 that applies rendering to the first temporary memory 26 and the second temporary memory 27, and selecting units 44 and 45 that select the first temporary memory 26 or the second temporary memory 27 alternatively.

The temporary memory rendering unit 43 is the same as the first temporary memory rendering unit 23 and the second temporary memory rendering unit 24 in the first embodiment. Therefore, an explanation of the temporary memory rendering unit 43 is omitted. Note that, in the second embodiment, components same as those in the first embodiment are denoted by reference numerals and signs identical to those in the first embodiment and explanations of the components are omitted.

Next, an operation of the rendering apparatus 40 in the second embodiment will be explained. First, the first temporary memory 26 and the second temporary memory 27 are cleared with C=0 and α=1.0 in advance. The first selecting unit 44 allocates a 64×64 pixel area (an area A), in which a figure drawn according to a rendering instruction is placed, to the first temporary memory 26. As long as a figure drawn according to a rendering instruction is within the area A, the first selecting unit 44 continues to select the first temporary memory 26. Consequently, the temporary memory rendering unit 43 applies rendering processing to the first temporary memory 26 according to the sent rendering instruction.

On the other hand, the second selection unit 45 selects the second temporary memory 27. The frame buffer rendering unit 22 performs blend processing between the second temporary memory 27 and the frame buffer 21 and writes a result of the blend processing in the frame buffer 21.

When a figure drawn according to a rendering instruction deviates from the area A while the rendering processing is applied to the first temporary memory 26, the result of the blend processing performed between the second temporary memory 27 and the frame buffer 21 is written in the frame buffer 21. Then, the selecting unit 44 allocates a new 64×64 pixel area including the figure deviating from the area A to the second temporary memory 27. A color code and an alpha element recorded in the first temporary memory 26 at this point are C_(1T) and α_(1T), respectively.

As long as a figure drawn according to a rendering instruction is within the area B, the first selecting unit 44 continues to select the second temporary memory 27. Consequently, the temporary memory rendering unit 43 applies rendering processing to the second temporary memory 27 according to the sent rendering instruction.

On the other hand, the second selecting unit 45 selects the first temporary memory 26. The frame buffer rendering unit 22 performs blend processing between the first temporary memory 26 and the frame buffer 21 and writes a result of the blend processing in the frame buffer 21. The color code C_(1F) represented by expression (8) is written in the frame buffer 21 anew.

When a figure drawn according to a rendering instruction deviates from the area B while the rendering processing is applied to the second temporary memory 27, the result of the blend processing performed between the first temporary memory 26 and the frame buffer 21 is written in the frame buffer 21. Then, the first selecting unit 44 allocates a new 64×64 pixel area (an area C) including the figure deviating from the area B to the first temporary memory 26. A color code and an alpha element recorded in the second temporary memory 27 at this point are C_(2T) and α_(2T), respectively.

As long as a figure drawn according to a rendering instruction is within the area C, the first selecting unit 44 continues to select the first temporary memory 26. Consequently, the temporary memory rendering unit 43 applies rendering processing to the first temporary memory 26 according to the sent rendering instruction.

On the other hand, the second selecting unit 45 selects the second temporary memory 27. The frame buffer rendering unit 22 performs blend processing between the second temporary memory 27 and the frame buffer 21 and writes a result of the blend processing in the frame buffer 21. The color code C_(2F) represented by expression (9) is written in the frame buffer 21 anew.

Thereafter, the rendering processing applied to the first temporary memory 26 and the rendering processing applied to the second temporary memory 27 is repeated alternately.

Note that it is also possible to use software to realize the operation of the rendering apparatus 40 in the second embodiment. In this case, a not-shown processing device executes a program of a flowchart shown in FIG. 6, whereby the functions of the frame buffer rendering unit 22, the temporary memory rendering unit 43, and the selecting units 44 and 45 are realized.

The flowchart shown in FIG. 6 will be explained. First, when a program 1 is executed, the processing device clears the first temporary memory 26 and the second temporary memory 27 and, then, allocates the area A to the first temporary memory 26 (step S601). As long as a figure drawn according to a rendering instruction is within the area A (“Yes” at step S602), the processing device applies rendering processing to the first temporary memory 26 (step S603).

When the figure drawn according to the rendering instruction deviates from the area A while the rendering processing is applied to the first temporary memory 26 (“No” at step S602), the processing device informs a program 2 of the deviation of the figure from the area A (step S604). In the program 2, the processing device performs blend processing between the first temporary memory 26 and the frame buffer 21 and writes a result of the blend processing in the frame buffer 21 (step S609).

On the other hand, in the program 1, the processing device allocates the area B to the second temporary memory 27 (step S605). As long as a figure drawn according to a rendering instruction is within the area B (“Yes” at step S606), the processing device applies rendering processing to the second temporary memory 27 (step S607).

When the figure drawn according to the rendering instruction deviates from the area B while the rendering processing is applied to the second temporary memory 27 (“No” at step S606), the processing device informs the program 2 of the deviation of the figure from the area B (step S608). In the program 2, the processing device performs blend processing between the second temporary memory 27 and the frame buffer 21 and writes a result of the blend processing in the frame buffer 21 (step S610). On the other hand, in the program 1, the processing device allocates the area C to the first temporary memory 26 (step S601). Thereafter, processing device executes steps S602 to S608.

According to the second embodiment, in the first and the second temporary memories 26 and 27, it is possible to perform blend processing for rendering results already stored in the temporary memories and rendering results to be rendered in the temporary memories. In addition, blend processing for a rendering result already stored in the frame buffer 21 and rendering results stored in the temporary memories 26 and 27 is performed according to the order of rendering instructions. Thus, high-speed rendering is possible and it is possible to perform alpha blend processing normally.

In a third embodiment of the invention, an calculation for a frame buffer and an calculation for display are performed separately. First, a method for the separation of the calculation will be explained.

A color code already rendered in the frame buffer is C_(F) and a color code to be rendered first is C₁. A blend ratio (0.0 to 1.0) to be used first is α₁. Then, a blend result C_(1F) of the frame buffer color C_(F) already rendered and the color C₁ to be rendered first is represented by the following expression (10). C _(1F)=α₁ C ₁+(1−α₁)C _(F)  (10)

The color code already rendered in the frame buffer is set to C_(1F) according to blend processing represented by expression (10). Next, a color code to be rendered second is C₂ and a blend ratio (0.0 to 1.0) to be used second is α₂. In this case, a blend result C_(21F) of the frame buffer color C_(1F) already rendered and the color C₂ to be rendered second is represented by the following expression (11). C _(21F)=α₂ C ₂+(1−α₂)C _(1F)  (11)

The color code already rendered in the frame buffer is set to C_(21F) according to blend processing represented by expression (11). Therefore, when a color code to be rendered third is C₃ and a blend ratio (0.0 to 1.0) to be used third is α₃, a blend result C_(321F) of the frame buffer color C_(21F) already rendered and the color C₃ to be rendered third is represented by the following expression (12). C _(321F)=α₃ C ₃+(1−α₃)C _(21F)  (12)

Although not described here, blend results of color codes already rendered in the frame buffer and colors to be rendered fourth and subsequently are calculated in the same manner. The calculation in expressions (10) to (12) are modified as indicated by the following expressions (13) to (15), respectively. The modification of the calculation are the same for the blend results of color codes already rendered in the frame buffer and colors to be rendered fourth and subsequently. $\begin{matrix} \begin{matrix} {C_{1F} = {{\alpha_{1}C_{1}} + {\left( {1 - \alpha_{1}} \right)C_{F}}}} \\ {= {C_{1}^{\prime} + {\left( {1 - \alpha_{1}} \right)C_{F}}}} \end{matrix} & (13) \\ \begin{matrix} {C_{21F} = {{\alpha_{2}C_{2}} + {\left( {1 - \alpha_{2}} \right)C_{1F}}}} \\ {= {{\alpha_{2}C_{2}} + {\left( {1 - \alpha_{2}} \right)C_{1}^{\prime}} + {\left( {1 - \alpha_{2}} \right)\left( {1 - \alpha_{1}} \right)C_{F}}}} \\ {= {C_{21}^{\prime} + {\left( {1 - \alpha_{2}} \right)\left( {1 - \alpha_{1}} \right)C_{F}}}} \end{matrix} & (14) \\ \begin{matrix} {C_{321F} = {{\alpha_{3}C_{3}} + {\left( {1 - \alpha_{3}} \right)C_{21F}}}} \\ {= {{\alpha_{3}C_{3}} + {\left( {1 - \alpha_{3}} \right)C_{21}^{\prime}} + {\left( {1 - \alpha_{3}} \right)\left( {1 - \alpha_{2}} \right)\left( {1 - \alpha_{1}} \right)C_{F}}}} \\ {= {C_{321}^{\prime} + {\left( {1 - \alpha_{3}} \right)\left( {1 - \alpha_{2}} \right)\left( {1 - \alpha_{1}} \right)C_{F}}}} \end{matrix} & (15) \end{matrix}$

By modifying the calculation as described above, the calculation C₁′, C₂₁′, and C₃₂₁′ for the second and subsequent times for the frame buffer are separated from the calculation (1−α₁)C_(F), (1−α₂)(1−α₁)C_(F), and (1−α₃)(1−α₂)(1−α₁)C_(F) for an initial value of the frame buffer. Therefore, it is possible to perform the calculation C₁′, C₂₁′, and C₃₂₁′ for the second and subsequent times for the frame buffer as usual rendering processing.

Color codes and alpha elements, which are recorded in the frame buffer in respective rendering stages, are C₁′ and (1−α₁) in rendering for the first time, C₂₁′ and (1−α₂)(1−α₁) in rendering for the second time, and C₃₂₁′ and (1−α₃)(1−α₂)(b 1−α₁) in rendering for the third time. Thereafter, in the same manner, color codes and alpha elements to be recorded in the temporary memories are overwritten.

A color code and an alpha element, of a screen subjected to the rendering and blend processing in such a system are C_(s) and α_(s), respectively, and the screen is a displaying blend screen. When a color code of a blend screen to be displayed is C_(D), a calculation to be performed in display blend processing is represented by the following expression (16). In other words, the calculation for the color C_(F) in the rendering for the first time is replaced with the calculation for the color C_(D) of the blend screen to be displayed. C _(SD) =C _(S)+α_(S) C _(S)  (16)

Next, a specific constitution of the third embodiment will be explained. FIG. 7 is a block diagram of a schematic structure of a display control apparatus according to the third embodiment. As shown in FIG. 7, a display control apparatus 50 in the third embodiment includes a first frame buffer 51 that stores data of a transparent screen, a second frame buffer 52 that stores data of a background screen, a rendering unit 53 that applies rendering to the first frame buffer 51, and a display control unit 54 that subjects pixels of the first frame buffer 51 and pixels of the second frame buffer 52 to blend processing and displays a result of the blend processing on a display device 55 like a display.

Next, a structure of the rendering unit 53 will be explained. In this explanation, a color code and a blend ratio of images already rendered in the first frame buffer 51 are C_(t) and 60 _(t), respectively. A color code and a blend ratio of images to be rendered in the first frame buffer are C and α, respectively.

FIG. 8 is a block diagram of the structure of the rendering unit 53. The rendering unit 53 includes a first subtracter 61, a first multiplier 62, a first adder 63, a second subtracter 64, and a second multiplier 65. The color codes and the alpha elements in the respective rendering stages, that is, C₁′ and (1−α₁ ), C₂₁′ and (1−α₂)(1−α₁), and C₃₂₁′ and (1−α₃)(1−α₂)(1−+₁) are calculated according to calculation by the first subtracter 61, the first multiplier 62, the first adder 63, the second subtracter 64, and the second multiplier 65.

The first subtracter 61 subtracts the color code C_(t) of the image already rendered in the first frame buffer 51 from the color code C of the image to be rendered in the first frame buffer 51. The first multiplier 62 multiplies a result of the calculation of the first subtracter 61 by the blend ratio α of the image to be rendered in the first frame buffer 51.

The first adder 63 adds the color code C of the image to be rendered in the first frame buffer 51 to a result of the calculation of the first multiplier 62. A result C_(t)′ of the calculation of the first adder 63 is stored in the first frame buffer 51 as a new color code of the image already rendered in the first frame buffer 51. In the next rendering applied to the first frame buffer 51, the result C_(t)′ is used as the color code C_(t) of the image already rendered in the first frame buffer 51.

The second subtracter 64 subtracts the blend ratio α of the image to be rendered in the first frame buffer 51 from 1. The second multiplier 65 multiplies a result of the calculation of the second subtracter 64 by the blend ratio α₁ of the image already rendered in the first frame buffer 51. A result α_(t)′ of the second multiplier 65 is stored in the first frame buffer as a new blend ratio of the image already rendered in the first frame buffer 51. In the next rendering applied to the first frame buffer 51, the result α_(t)′ is used as the blend ratio α_(t) of the image already rendered in the first frame buffer 51.

Next, a structure of the display control unit 54 will be explained. In this explanation, a color code and a blend ratio of a transparent screen rendered in the first frame buffer 51 are C_(s) and α_(s), respectively, and a color code of a background screen rendered in the second frame buffer 52 is C_(d).

FIG. 9 is a block diagram of the structure of the display control unit 54. The display control unit 54 includes a third multiplier 66 and a second adder 67. The calculation of expression (16) is performed according to calculation by the third multiplier 66 and the second adder 67. Note that C_(s) equals C_(S), α_(s) equals α_(S), and C_(d) equals C_(D).

The third multiplier 66 multiplies the color code C_(d) of the image rendered in the second frame buffer 52 by the blend ratio α_(s) of the image rendered in the first frame buffer 51. The second adder 67 adds the color code C_(s)of the image rendered in the first frame buffer 51 to a result of the calculation of the third multiplier 66. A result C_(sd) of the calculation of the second adder 67 (C_(SD) in expression (16)) is displayed on the display device 55.

Next, an operation of the display control apparatus 50 in the third embodiment will be explained. First, the first frame buffer 51 is cleared with C=0 and α=1.0 in advance. This clear processing is performed to set C_(f) to αC and α_(f) to (1−α) at the time of a first operation in a blend processing operation in the rendering unit 53 shown in FIG. 8.

First, the rendering unit 53 applies rendering to the first frame buffer 51 (the transparent screen). The display control unit 54 reads out data stored in the first frame buffer 51 and the second frame buffer 52 (the background screen) and confirms a flag for controlling transmission and non-transmission provided for each pixel (hereinafter referred to as transmission/non-transmission control flag).

The display control unit 54 displays the data in the second frame buffer 52 for pixels with the transmission/non-transmission control flag set OFF. In addition, for pixels with the transmission/non-transmission control flag set ON, the display control unit 54 subjects pixel data in the first frame buffer 51 and pixel data in the second frame buffer 52 to blend processing and displays the pixel data.

Note that it is also possible to use software to realize a part of the operation of the display control apparatus 50 in the third embodiment. In this case, a not-shown processing device executes a program of a flowchart shown in FIG. 10, whereby the function of the rendering unit 53, that is, alpha blending in rendering processing is realized.

The flow chart shown in FIG. 10 will be explained. First, after clearing the first frame buffer 51, the processing device reads out a color code C_(f) and a blend ratio α_(f) from the first frame buffer 51 (step S1001). The processing device calculates C_(f)′ represented by the next expression (17) (step S1002). In addition, the processing device calculates α_(f)′ represented by the following expression (18) (step S1003). C _(f) ′=αC+(1−α) C _(f)  (17) α_(f)′=α_(f)(1−α)  (18)

Subsequently, the processing device writes C_(f)′ and α_(f)′ obtained from expressions (17) and (18) in the first frame buffer 51 (step S1004). The processing device repeats the processing until the processing is finished for all the pixels (step S1005). In the processing, C_(f)′ and α_(f)′ written in the first frame buffer 51 anew are read out as the color code C_(f) and the blend ratio α_(f) of the first frame buffer 51.

In the third embodiment, the rendering unit 53 subjects a rendering result already stored in the first frame buffer 51 and a rendering result of rendering to be applied to the first frame buffer 51 to blend processing. The display control unit 54 subjects the rendering result stored in the first frame buffer 51 and a rendering result stored in the second frame buffer 52 to transmission or non-transmission processing by a unit of pixel and synthesizes the rendering results. Thus, according to the third embodiment, even when display transmission/non-transmission processing is performed together with alpha blending in rendering processing, it is possible to obtain a display result, in which the respective processing are synthesized, correctly.

In the third embodiment, the display control unit 54 subjects the rendering result stored in the first frame buffer 51 and the rendering result stored in the second frame buffer 52 to transmission or non-transmission processing by a unit of pixel and synthesizes the rendering results. On the other hand, in the fourth embodiment, the display control unit 54 subjects the rendering result stored in the first frame buffer 51 and the rendering result stored in the second frame buffer 52 to blend processing and synchronizes the rendering results. Since the display control unit 54 in the fourth embodiment is the same as that in the third embodiment except the above points, redundant explanations are omitted.

A structure of the display control unit 54 will be explained. In this explanation, a color code and a blend ratio of a transparent screen rendered in the first frame buffer 51 are C_(s) and α_(s), respectively, and a color code of a background screen rendered in the second frame buffer 52 is C_(d). In addition, a display transmittance of the transparent screen and the background screen, that is, a display blend ratio is α_(x).

FIG. 11 is a block diagram of the structure of the display control unit 54. The display control unit 54 includes a third multiplier 71, a third subtracter 72, a fourth multiplier 73, and a second adder 74. The calculation of expression (16) is performed according to calculation by the third multiplier 71 and the second adder 74. Note that C_(s) equals C_(S), α_(s) equals α_(S), and C_(d) equals C_(D).

The third multiplier 71 multiplies the color code C_(d) of the image rendered in the second frame buffer 52 by the blend ratio α_(s) of the image rendered in the first frame buffer 51. The third subtracter 72 subtracts a result of the calculation of the third multiplier 71 from the color code C_(s) of the image rendered in the first frame buffer 51.

The fourth multiplier 73 multiplies a result of the calculation of the third subtracter 72 by the blend ratio α_(s) of the image rendered in the first frame buffer 51. The second adder 74 adds the result of the calculation of the third multiplier 71 to a result of the calculation of the fourth multiplier 73. An output C_(sd) of the second adder 74 is displayed on the display device 55. The result C_(sd) of the calculation of the second adder 74 is represented by the following expression (19). $\begin{matrix} \begin{matrix} {C_{sd} = {{\alpha_{x}C_{s}} + {\left( {1 - \alpha_{x}} \right)\alpha_{s}C_{d}}}} \\ {= {{\alpha_{x}\left( {C_{s} - {\alpha_{s}C_{d}}} \right)} + {\alpha_{s}C_{d}}}} \end{matrix} & (19) \end{matrix}$

Next, an operation of the display control apparatus 50 in the fourth embodiment will be explained. First, the first frame buffer 51 is cleared with C=0 and α=1.0 in advance. The rendering unit 53 applies rendering to the first frame buffer 51 (the transparent screen). The display control unit 54 reads out data stored in the first frame buffer 51 and data stored the second frame buffer 52 (the background screen) and subjects the data to blend processing at the display transmittance α_(x). Then, the display control unit 54 displays a result obtained by subjecting pixel data in the first frame buffer 51 and pixel data in the second frame buffer 52 to the bland processing at the transmittance α_(x).

Note that, in the fourth embodiment, as in the third embodiment, a not-shown processing device executes the program of the flowchart shown in FIG. 10, whereby it is possible to realize the function of the rendering unit 53. An explanation of the flowchart shown in FIG. 10 is omitted because the explanation is redundant.

In the fourth embodiment, the rendering unit 53 subjects a rendering result already stored in the first frame buffer 51 and a rendering result of rendering to be applied to the first frame buffer 51 to blend processing. The display control unit 54 subjects the rendering result stored in the first frame buffer 51 and a rendering result stored in the second frame buffer 52 to the blend processing and synthesizes the rendering results. Thus, according to the fourth embodiment, even when alpha blending in display processing is performed together with alpha blending in rendering processing, it is possible to obtain a display result, in which the respective processing are synthesized, correctly.

FIG. 12 is a block diagram of a schematic structure of a display control apparatus according to a fifth embodiment. As shown in FIG. 12, a display control apparatus 70 in the fifth embodiment includes a first frame buffer 51 that stores data of a transparent screen, a second frame buffer 52 that stores data of a background screen, a rendering unit (a first rendering unit) 53 that applies rendering to the first frame buffer 51, a second rendering unit 71 that subjects pixels of the first frame buffer 51 and pixels of the second frame buffer 52 to blend processing, a third frame buffer 72 that stores a result of the blend processing of the second rendering unit 71, and a display control unit 73 that displays data stored in the third frame buffer 72 on a display device 55 like a display.

In the following description, only components of the display control apparatus 70 in the fifth embodiment different from those of the display control apparatus 50 in the third embodiment will be explained. Components same as those in the third embodiment are denoted by the identical reference numerals and signs and explanations of the components are omitted. The second rendering unit 71 has the same blending function as the display control unit 54 in the third embodiment. In other words, the second rendering unit 71 has the structure shown in FIG. 9. In the fifth embodiment, the display control unit 73 does not have the blending function.

Next, an operation of the display control apparatus 70 in the fifth embodiment will be explained. First, the first frame buffer 51 is cleared with C=0 and α=1.0 in advance. The rendering unit 53 applies rendering to the first frame buffer 51 (the transparent screen). The second rendering unit 71 reads out data stored in the first frame buffer 51 and data stored in the second frame buffer 52 (the background screen) and confirms a transmission/non-transmission control flag provided for each pixel.

The second rendering unit 71 stores the data, which is stored in the second frame buffer 52, in the third frame buffer 72 for pixels with the transmission/non-transmission control flag set OFF. In addition, for pixels with the transmission/non-transmission control flag set ON, the second rendering unit 71 stores a result, which is obtained by subjecting pixel data in the first frame buffer 51 and pixel data in the second frame buffer 52 to blend processing, in the third frame buffer 72. The display control unit 73 reads out the data in the third frame buffer 72 and displays contents of the data on the display device 55 such as a display.

Note that it is also possible to use software to realize the operation of the display control apparatus 70 in the fifth embodiment. In this case, a not-shown processing device executes a program of a flowchart shown in FIG. 13, whereby the functions of the first rendering unit 53 and the second rendering unit 71 are realized.

The flow chart shown in FIG. 13 will be explained. First, after clearing the first frame buffer 51, the processing device reads out a color code C_(f) and a blend ratio α_(f) from the first frame buffer 51 (step S1301). The processing device calculates C_(f)′ represented by expression (17) (step S1302). In addition, the processing device calculates α_(f)′ represented by expression (18) (step S1303).

Subsequently, the processing device writes C_(f)′ and α_(f)′ obtained from expressions (17) and (18) in the first frame buffer 51 (step S1304). The processing device repeats the processing until the processing is finished for all the pixels (step S1305). In the processing, C_(f)′ and α_(f)′ written in the first frame buffer 51 anew are read out as the color code C_(f) and the blend ratio α_(f) of the first frame buffer 51.

When the processing for writing C_(f)′ and α_(f)′ in the first frame buffer 51 is finished (“Yes” at step S1305), the processing device reads out a color code C_(s) and a blend ratio α_(s) of a transparent screen from the first frame buffer 51 (step S1306). In addition, the processing device reads out a color code C_(d) of a background screen from the second frame buffer 52 (step S1307). Subsequently, the processing device performs an calculation of the next expression (20) to calculate C_(sd) (step S1308). C _(sd)=α_(s) C _(s)+(1−α_(s))C_(d)  (20)

If the transmission/non-transmission control flag is set to non-transmission (“No” at step S1309), the processing device writes C_(sd) in the third frame buffer 72 (step S1310). On the other hand, if the transmission/non-transmission control flag is set to transmission (“Yes” at step S1309), the processing device does not write C_(sd) in the third frame buffer 72. The processing device repeats steps S1306 to S1311 until the processing is finished for all the pixels (step S1311).

In the fifth embodiment, the first rendering unit 53 subjects a rendering result already stored in the first frame buffer 51 and a rendering result of rendering to be applied to the first frame buffer 51 to blend processing. The second rendering unit 71 subjects the rendering result stored in the first frame buffer 51 and a rendering result stored in the second frame buffer 52 to transmission or non-transmission processing by a unit of pixel and synthesizes the rendering results. Thus, according to the fifth embodiment, even when display transmission/non-transmission processing is performed together with alpha blending in rendering processing, it is possible to obtain a display result, in which the respective processing are synthesized, correctly.

In a sixth embodiment, the alpha blending in rendering processing and the alpha blending in display processing same as those in the fourth embodiment are performed by the same structure as the display control apparatus 70 in the fifth embodiment shown in FIG. 12. Since the overall structure is as shown in FIG. 12, redundant explanations are omitted. In the sixth embodiment, the second rendering unit 71 has the same blending function as the display control unit 54 in the third embodiment. In other words, the second rendering unit 71 has the structure shown in FIG. 11. In addition, the display control unit 73 does not have the blending function.

Next, an operation of the display control apparatus 70 in the sixth embodiment will be explained. First, the first frame buffer 51 is cleared with C=0 and α=1.0 in advance. The first rendering unit 53 applies rendering to the first frame buffer 51 (the transparent screen). The second rendering unit 71 reads out data stored in the first frame buffer 51 and the second frame buffer 52 (the background screen) and applies blend processing to the data at a display transmittance α_(x).

The second rendering unit 71 stores a result, which is obtained by subjecting pixel data in the first frame buffer 51 and pixel data in the second frame buffer 52 to the blend processing at the display transmittance α_(x), in the third frame buffer 72. The display control unit 73 reads out data in the third frame buffer 72 and displays contents of the data on the display device 55 such as a display.

Note that it is also possible to use software to realize the operation of the display control apparatus 70 in the sixth embodiment. In this case, a not-shown processing device executes a program of a flowchart shown in FIG. 14, whereby the functions of the first rendering unit 53 and the second rendering unit 71 are realized.

The flowchart shown in FIG. 14 will be explained. First, after clearing the first frame buffer 51, the processing device reads out a color code C_(f) and a blend ratio α_(f) from the first frame buffer 51 (step S1401). The processing device calculates C_(f)′ represented by expression (17) (step S1402). In addition, the processing device calculates α_(f)′ represented by expression (18) (step S1403).

Subsequently, the processing device writes C_(f)′ and α_(f)′ obtained from expressions (17) and (18) in the first frame buffer 51 (step S1404). The processing device repeats the processing until the processing is finished for all the pixels (step S1405). In the processing, C_(f)′ and α_(f)′ written in the first frame buffer 51 anew are read out as the color code C_(f) and the blend ratio α_(f) of the first frame buffer 51.

When the processing for writing C_(f)′ and α_(f)′ in the first frame buffer 51 is finished (“Yes” at step S1405), the processing device reads out a color code C_(s) and a blend ratio α_(s) of a transparent screen from the first frame buffer 51 (step S1406). In addition, the processing device reads out a color code C_(d) of a background screen from the second frame buffer 52 (step S1407). Subsequently, the processing device performs an calculation of expression (19) to calculate C_(sd) (step S1408).

Then, the processing device writes C_(sd) in the third frame buffer 72 (step S1409). The processing device repeats steps S1406 to S1410 until the processing is finished for all the pixels (step S1410).

In the sixth embodiment, the first rendering unit 53 subjects a rendering result already stored in the first frame buffer 51 and a rendering result of rendering to be applied to the first frame buffer 51 to blend processing. The second rendering unit 71 subjects the rendering result stored in the first frame buffer 51 and a rendering result stored in the second frame buffer 52 to the blend processing and synthesizes the rendering results. Thus, according to the sixth embodiment, even when alpha blending in display processing is performed together with alpha blending in rendering processing, it is possible to obtain a display result, in which the respective processing are synthesized, correctly.

In the above description, the invention is not limited to the embodiments but can be changed in various ways.

According to the invention, it is possible to obtain a rendering apparatus that is capable of performing high-speed rendering and performing alpha blend processing normally. It is also possible to obtain a display control apparatus that is, even when display transmission/non-transmission processing or alpha blending in display processing is performed together with alpha blending in rendering processing, capable of obtaining a display result, in which the respective processing are synthesized, correctly.

Although the invention has been described with respect to a specific embodiment for a complete and clear disclosure, the appended claims are not to be thus limited but are to be construed as embodying all modifications and alternative constructions that may occur to one skilled in the art which fairly fall within the basic teaching herein set forth. 

1. A rendering apparatus that blends a plurality of source images into a destination image stored in a frame buffer and renders a blended image of the source images and the destination image on a display, comprising: a temporary memory of higher speed and smaller capacity than the frame buffer; a calculating unit that calculates a first data and a second data without using the destination image and stores the first data and the second data in the temporary memory; and a blending unit that blends the source images into the destination image using the first data and the second data stored in the temporary memory to obtain the blended image, and stores the blended image in the frame buffer.
 2. The rendering apparatus according to claim 1, wherein the rendering apparatus includes a plurality of sets of the temporary memory and the calculating unit, and the blending unit blends the source images into the destination image using a plurality of sets of the first data and the second data, each of which is calculated independently of each other and stored in one of the temporary memories to obtain the blended image.
 3. The rendering apparatus according to claim 1, wherein the rendering apparatus includes a plurality of temporary memories, and the rendering apparatus further includes a selecting unit that selects one of the temporary memories, and the blending unit blends the source images into the destination image using the first data and the second data stored in the temporary memory selected.
 4. The rendering apparatus according to claim 1, wherein the calculating unit includes a first subtracter that subtracts a color code C_(t), which is the first data previously calculated and stored in the temporary memory, from a color code C of one of the source images; a first multiplier that multiplies an output of the first subtracter by a blend ratio α of the source image; an adder that adds the color code C to an output of the first multiplier; a second subtracter that subtracts the blend ratio α from 1; and a second multiplier that multiplies an output of the second subtracter by a blend ratio α_(t), which is the second data previously calculated and stored in the temporary memory, wherein the calculating unit overwrites the color code C_(t) by an output of the adder and overwrites the blend ratio at by an output of the second multiplier.
 5. The rendering apparatus according to claim 4, wherein the blending unit includes a multiplier that multiplies a color code C_(f) of the destination image stored in the frame buffer by the blend ratio α_(t) stored in the temporary memory; and an adder that adds the color code C_(t) stored in the temporary memory to an output of the multiplier, wherein the blending unit overwrites the color code C_(f) by an output of the adder.
 6. The rendering apparatus according to claim 1, further comprising a display control unit that displays the blended image on the display in such a way that a pixel in the blended image is transparent and another pixel in the blended image is not transparent.
 7. The rendering apparatus according to claim 6, wherein the display control unit includes a multiplier that multiplies a color code C_(d) of a background image by the blend ratio α_(t) stored in the temporary memory; and an adder that adds the color code C_(t) stored in the temporary memory to an output of the multiplier.
 8. The rendering apparatus according to claim 1, further comprising a display control unit that displays a blended image of a background image and the blended image stored in the frame buffer.
 9. The rendering apparatus according to claim 8, wherein the display control unit includes a first multiplier that multiplies a color code C_(d) of the background image by a blend ratio α_(s) of the blended image stored in the frame buffer; a subtracter that subtracts an output of the first multiplier from a color code C_(s) of the blended image stored in the frame buffer; a second multiplier that multiplies an output of the subtracter by a display transmittance α_(x) of the blended image stored in the frame buffer and the background image; and an adder that adds an output of the second multiplier to an output of the first multiplier.
 10. A rendering apparatus that blends a plurality of source images into a destination image stored in a frame buffer and renders a blended image of the source images and the destination image on a display, comprising: a temporary memory of higher speed and smaller capacity than the frame buffer; and a processor that executes a computer program, wherein the computer program causes the processor to execute calculating a first data and a second data without using the destination image; storing the first data and the second data in the temporary memory; blending the source images into the destination image using the first data and the second data stored in the temporary memory to obtain the blended image; and storing the blended image in the frame buffer.
 11. A rendering apparatus according to claim 10, wherein the rendering apparatus includes a plurality of sets of the temporary memory and the processor, and the computer program causes each of the processor to execute calculating, independently of each other, the first data and the second data for a specific area of the source images without using the destination image; storing the first data and the second data in a corresponding temporary memory; blending the source images into the destination image using a plurality of sets of the first data and the second data stored in the temporary memories to obtain the blended image; and storing the blended image in the frame buffer.
 12. A rendering apparatus according to claim 10, wherein the rendering apparatus includes the temporary memory in plural, and the computer program causes the processor to execute calculating the first data and the second data for a specific area of the source images without using the destination image; storing the first data and the second data in one of the temporary memories; blending the source images into the destination image using a plurality of sets of the first data and the second data stored in the temporary memories to obtain the blended image; and storing the blended image in the frame buffer.
 13. The rendering apparatus according to claim 10, further comprising a display control unit that displays the blended image on the display in such a way that a pixel in the blended image is transparent and another pixel in the blended image is not transparent.
 14. The rendering apparatus according to claim 10, further comprising a display control unit that displays a blended image of a background image and the blended image stored in the frame buffer.
 15. A display control apparatus that displays an image on a display, comprising: a first frame buffer; a second frame buffer; a first synthesizing unit that creates a first synthesized image by blending an image into another image stored in the first frame buffer, and stores the first synthesized image in the first frame buffer; a second synthesizing unit that creates a second synthesized image of the first synthesized image and a background image, and stores the second synthesized image in the second frame buffer; and a display control unit that displays the second synthesized image.
 16. The display control apparatus according to claim 15, wherein the second synthesizing unit creates the second synthesized image in such a way that a pixel in the second synthesized image is transparent and another pixel in the second synthesized image is not transparent.
 17. The display control apparatus according to claim 15, wherein the second synthesizing unit creates the second synthesized image by blending the first synthesized image and the background image.
 18. A display control apparatus that displays an image on a display, comprising: a first frame buffer; a second frame buffer; a processor that executes a computer program, wherein the computer program causes the processor to execute creating a first synthesized image by blending an image into another image stored in the first frame buffer; storing the first synthesized image in the first frame buffer; creating a second synthesized image of the first synthesized image and a background image; and storing the second synthesized image in the second frame buffer; and a display control unit that displays the second synthesized image.
 19. The display control apparatus according to claim 18, wherein the second synthesized image is created in such a way that a pixel in the second synthesized image is transparent and another pixel in the second synthesized image is not transparent.
 20. The display control apparatus according to claim 18, wherein the second synthesized image is created by blending the first synthesized image and the background image. 